<?php
namespace App\Listeners;

use App\Library\Service\DB\TransactionMonitorService;
use Illuminate\Database\Events\TransactionBeginning;

class TransactionBeginningListener
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     * @param TransactionBeginning $event
     * @return void
     */
    public function handle(TransactionBeginning $event)
    {
        TransactionMonitorService::begin($event);
    }
}
